package com.xuanyuanxinyu.core.listener;



import com.xuanyuanxinyu.core.utils.LogUtil;

/**
* @FileName: SimpleAppLifecycleCallback
* @Description:
* @author ken.luo
* @date 2023/4/4
* @version V1.0
* @email 424533553@qq.com
*/
public class SimpleAppLifecycleCallback {

    private static final String TAG = "SimpleAppLifecycleCallb";
    private static final long SHUT_DOWN_DELAY_IN_MILLI = 120000L;

    public SimpleAppLifecycleCallback() {}


    public void onMoveToBackgroud() {
        LogUtil.d(TAG, "onMoveToBackgroud()");
        long nextAlarmInMilliseconds = System.currentTimeMillis() + SHUT_DOWN_DELAY_IN_MILLI;
        LogUtil.d(TAG, "Schedule next alarm at " + nextAlarmInMilliseconds);

    }


    public void onMoveToForground() {
        LogUtil.d(TAG, "onMoveToForground()");
    }


}
